
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>生产者消费者 · bin 的个人文档库</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="李斌 - leo-bin">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism-solarizedlight.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-pageview-count/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-comscore/test.css">
                
            
        

    

    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="String匹配.html" />
    
    
    <link rel="prev" href="id生成.html" />
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"buttons":[{"user":"leo-bin","repo":"coding-bin","type":"star","count":true,"size":"small"},{"user":"leo-bin","width":"160","type":"follow","count":true,"size":"small"}]};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    首页
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="./">
            
                <a href="./">
            
                    
                    我的算法爬坑之路
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="数据结构/">
            
                <a href="数据结构/">
            
                    
                    数据结构
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.1" data-path="数据结构/数组.html">
            
                <a href="数据结构/数组.html">
            
                    
                    数组
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.2" data-path="数据结构/链表.html">
            
                <a href="数据结构/链表.html">
            
                    
                    链表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.3" data-path="数据结构/哈希表.html">
            
                <a href="数据结构/哈希表.html">
            
                    
                    哈希表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.4" data-path="数据结构/树.html">
            
                <a href="数据结构/树.html">
            
                    
                    树
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.5" data-path="数据结构/队列.html">
            
                <a href="数据结构/队列.html">
            
                    
                    队列
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="排序/">
            
                <a href="排序/">
            
                    
                    排序算法
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.2.1" data-path="排序/选择.html">
            
                <a href="排序/选择.html">
            
                    
                    选择排序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2.2" data-path="排序/冒泡.html">
            
                <a href="排序/冒泡.html">
            
                    
                    冒泡排序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2.3" data-path="排序/插入.html">
            
                <a href="排序/插入.html">
            
                    
                    插入排序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2.4" data-path="排序/快排.html">
            
                <a href="排序/快排.html">
            
                    
                    快速排序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2.5" data-path="排序/归并.html">
            
                <a href="排序/归并.html">
            
                    
                    归并排序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2.6" data-path="排序/堆排序.html">
            
                <a href="排序/堆排序.html">
            
                    
                    堆排序
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="搜索.html">
            
                <a href="搜索.html">
            
                    
                    搜索算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="lru.html">
            
                <a href="lru.html">
            
                    
                    LRU算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="id生成.html">
            
                <a href="id生成.html">
            
                    
                    id生成算法
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.6" data-path="pv.html">
            
                <a href="pv.html">
            
                    
                    生产者消费者
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="String匹配.html">
            
                <a href="String匹配.html">
            
                    
                    字符串匹配算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8" data-path="skiplist.html">
            
                <a href="skiplist.html">
            
                    
                    跳跃表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.9" data-path="面试算法.html">
            
                <a href="面试算法.html">
            
                    
                    面试常考算法场景
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../刷题/">
            
                <a href="../刷题/">
            
                    
                    刷题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../刷题/衣.html">
            
                <a href="../刷题/衣.html">
            
                    
                    第1节：衣
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../刷题/衣.html">
            
                <a href="../刷题/衣.html">
            
                    
                    第1节：衣
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../刷题/衣.html">
            
                <a href="../刷题/衣.html">
            
                    
                    第1节：衣
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../刷题/衣.html">
            
                <a href="../刷题/衣.html">
            
                    
                    第1节：衣
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../计算机基础/">
            
                <a href="../计算机基础/">
            
                    
                    计算机基础
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../计算机基础/计网.html">
            
                <a href="../计算机基础/计网.html">
            
                    
                    计算机网络
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../计算机基础/操作系统.html">
            
                <a href="../计算机基础/操作系统.html">
            
                    
                    操作系统
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../Java/">
            
                <a href="../Java/">
            
                    
                    Java
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../Java/jvm.html">
            
                <a href="../Java/jvm.html">
            
                    
                    JVM
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../Java/java基础.html">
            
                <a href="../Java/java基础.html">
            
                    
                    Java基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../Java/集合.html">
            
                <a href="../Java/集合.html">
            
                    
                    集合
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../Java/线程和并发.html">
            
                <a href="../Java/线程和并发.html">
            
                    
                    多线程和并发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../Java/javaweb.html">
            
                <a href="../Java/javaweb.html">
            
                    
                    JavaWeb
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../设计模式/">
            
                <a href="../设计模式/">
            
                    
                    设计模式
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../设计模式/单例.html">
            
                <a href="../设计模式/单例.html">
            
                    
                    单例模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../设计模式/代理.html">
            
                <a href="../设计模式/代理.html">
            
                    
                    代理模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../设计模式/工厂.html">
            
                <a href="../设计模式/工厂.html">
            
                    
                    工厂模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../设计模式/策略.html">
            
                <a href="../设计模式/策略.html">
            
                    
                    策略模式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../数据库/">
            
                <a href="../数据库/">
            
                    
                    数据库
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../数据库/mysql.html">
            
                <a href="../数据库/mysql.html">
            
                    
                    MySQL
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../数据库/redis.html">
            
                <a href="../数据库/redis.html">
            
                    
                    Redis
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../数据库/mongodb.html">
            
                <a href="../数据库/mongodb.html">
            
                    
                    MongoDB
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../数据库/es.html">
            
                <a href="../数据库/es.html">
            
                    
                    Elasticsearch
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../中间件/">
            
                <a href="../中间件/">
            
                    
                    中间件
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../中间件/rabbitmq.html">
            
                <a href="../中间件/rabbitmq.html">
            
                    
                    RabbitMQ
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../中间件/kafaka.html">
            
                <a href="../中间件/kafaka.html">
            
                    
                    Kafaka
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../中间件/rocketmq.html">
            
                <a href="../中间件/rocketmq.html">
            
                    
                    RocketMQ
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="../中间件/mycat.html">
            
                <a href="../中间件/mycat.html">
            
                    
                    MyCat
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../框架/">
            
                <a href="../框架/">
            
                    
                    框架
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../框架/spring.html">
            
                <a href="../框架/spring.html">
            
                    
                    Spring
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../框架/mybatis.html">
            
                <a href="../框架/mybatis.html">
            
                    
                    MyBatis
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../框架/disruptor.html">
            
                <a href="../框架/disruptor.html">
            
                    
                    Disruptor
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="../框架/jwt.html">
            
                <a href="../框架/jwt.html">
            
                    
                    JWT
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.5" data-path="../框架/shiro.html">
            
                <a href="../框架/shiro.html">
            
                    
                    Shiro
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.6" data-path="../框架/graylog.html">
            
                <a href="../框架/graylog.html">
            
                    
                    Graylog
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../大数据/">
            
                <a href="../大数据/">
            
                    
                    大数据
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../大数据/hadoop.html">
            
                <a href="../大数据/hadoop.html">
            
                    
                    Hadoop
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../大数据/hdfs.html">
            
                <a href="../大数据/hdfs.html">
            
                    
                    HDFS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="../大数据/mr.html">
            
                <a href="../大数据/mr.html">
            
                    
                    Mapreduce
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.4" data-path="../大数据/hbase.html">
            
                <a href="../大数据/hbase.html">
            
                    
                    Hbase
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.5" data-path="../大数据/sqoop.html">
            
                <a href="../大数据/sqoop.html">
            
                    
                    Sqoop
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.6" data-path="../大数据/hive.html">
            
                <a href="../大数据/hive.html">
            
                    
                    Hive
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.7" data-path="../大数据/scala.html">
            
                <a href="../大数据/scala.html">
            
                    
                    Scala
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.8" data-path="../大数据/spark.html">
            
                <a href="../大数据/spark.html">
            
                    
                    Spark
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.9" data-path="../大数据/zookeeper.html">
            
                <a href="../大数据/zookeeper.html">
            
                    
                    ZooKeeper
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../devops/">
            
                <a href="../devops/">
            
                    
                    自动化
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../devops/docker.html">
            
                <a href="../devops/docker.html">
            
                    
                    Docker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../devops/k8s.html">
            
                <a href="../devops/k8s.html">
            
                    
                    K8s
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="../devops/jenkins.html">
            
                <a href="../devops/jenkins.html">
            
                    
                    Jenkins
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../大前端/">
            
                <a href="../大前端/">
            
                    
                    大前端
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="../大前端/基础.html">
            
                <a href="../大前端/基础.html">
            
                    
                    HTML+CSS+JS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.2" data-path="../大前端/小程序.html">
            
                <a href="../大前端/小程序.html">
            
                    
                    微信小程序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.3" data-path="../大前端/vue.html">
            
                <a href="../大前端/vue.html">
            
                    
                    Vue
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../机器学习AI/">
            
                <a href="../机器学习AI/">
            
                    
                    机器学习+人工智能
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../机器学习AI/衣.html">
            
                <a href="../机器学习AI/衣.html">
            
                    
                    第1节
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../生活随笔/">
            
                <a href="../生活随笔/">
            
                    
                    生活随笔
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.14.1" data-path="../生活随笔/衣.html">
            
                <a href="../生活随笔/衣.html">
            
                    
                    第1节
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.2" data-path="../生活随笔/衣.html">
            
                <a href="../生活随笔/衣.html">
            
                    
                    第1节
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >生产者消费者</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#&#x751F;&#x4EA7;&#x8005;&#x6D88;&#x8D39;&#x8005;"><b></b>&#x751F;&#x4EA7;&#x8005;&#x6D88;&#x8D39;&#x8005;</a></li><ul><li><span class="title-icon "></span><a href="#&#x751F;&#x4EA7;&#x8005;-&#x6D88;&#x8D39;&#x8005;"><b></b>&#x751F;&#x4EA7;&#x8005;-&#x6D88;&#x8D39;&#x8005;</a></li><ul><li><span class="title-icon "></span><a href="#&#x53C2;&#x8003;&#x4EE3;&#x7801;"><b></b>&#x53C2;&#x8003;&#x4EE3;&#x7801;</a></li><li><span class="title-icon "></span><a href="#&#x6D4B;&#x8BD5;&#x4EE3;&#x7801;"><b></b>&#x6D4B;&#x8BD5;&#x4EE3;&#x7801;</a></li><li><span class="title-icon "></span><a href="#&#x6D4B;&#x8BD5;&#x7ED3;&#x679C;"><b></b>&#x6D4B;&#x8BD5;&#x7ED3;&#x679C;</a></li></ul><li><span class="title-icon "></span><a href="#&#x603B;&#x7ED3;"><b></b>&#x603B;&#x7ED3;</a></li></ul></ul></div><a href="#&#x751F;&#x4EA7;&#x8005;&#x6D88;&#x8D39;&#x8005;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="&#x751F;&#x4EA7;&#x8005;&#x6D88;&#x8D39;&#x8005;"><a name="&#x751F;&#x4EA7;&#x8005;&#x6D88;&#x8D39;&#x8005;" class="anchor-navigation-ex-anchor" href="#&#x751F;&#x4EA7;&#x8005;&#x6D88;&#x8D39;&#x8005;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x751F;&#x4EA7;&#x8005;&#x6D88;&#x8D39;&#x8005;</h1>
<pre class="language-"><code class="lang-xml">&#x672C;&#x6B21;&#x7ED9;&#x5927;&#x5BB6;&#x4ECB;&#x7ECD;&#x4E0B;&#x5982;&#x4F55;&#x4F7F;&#x7528;Java&#x5199;&#x4E00;&#x4E2A;&#x7B80;&#x6613;&#x7684;&#x751F;&#x4EA7;&#x8005;&#x6D88;&#x8D39;&#x8005;&#x6A21;&#x677F;
</code></pre>
<h2 id="&#x751F;&#x4EA7;&#x8005;-&#x6D88;&#x8D39;&#x8005;"><a name="&#x751F;&#x4EA7;&#x8005;-&#x6D88;&#x8D39;&#x8005;" class="anchor-navigation-ex-anchor" href="#&#x751F;&#x4EA7;&#x8005;-&#x6D88;&#x8D39;&#x8005;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x751F;&#x4EA7;&#x8005;-&#x6D88;&#x8D39;&#x8005;</h2>
<h3 id="&#x53C2;&#x8003;&#x4EE3;&#x7801;"><a name="&#x53C2;&#x8003;&#x4EE3;&#x7801;" class="anchor-navigation-ex-anchor" href="#&#x53C2;&#x8003;&#x4EE3;&#x7801;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x53C2;&#x8003;&#x4EE3;&#x7801;</h3>
<pre class="language-"><code class="lang-java"><span class="token keyword">package</span> <span class="token namespace">com<span class="token punctuation">.</span>bins<span class="token punctuation">.</span>algorithm<span class="token punctuation">.</span>pv</span><span class="token punctuation">;</span>

<span class="token keyword">import</span> <span class="token namespace">java<span class="token punctuation">.</span>util</span><span class="token punctuation">.</span><span class="token class-name">LinkedList</span><span class="token punctuation">;</span>

<span class="token comment">/**
 * @author leo-bin
 * @date 2020/4/24 17:22
 * @apiNote &#x751F;&#x4EA7;&#x8005;&#x6D88;&#x8D39;&#x8005;&#xFF0C;synchronized+LinkedList&#x5B9E;&#x73B0;
 */</span>
<span class="token keyword">public</span> <span class="token keyword">class</span> <span class="token class-name">ProducerAndConsumerV1</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">T</span><span class="token punctuation">&gt;</span></span> <span class="token punctuation">{</span>

    <span class="token comment">/**
     * &#x672A;&#x6EE1;&#x9501;
     */</span>
    <span class="token keyword">private</span> <span class="token keyword">final</span> <span class="token class-name">Object</span> notFullLock <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">Object</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token comment">/**
     * &#x975E;&#x7A7A;&#x9501;
     */</span>
    <span class="token keyword">private</span> <span class="token keyword">final</span> <span class="token class-name">Object</span> notNullLock <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">Object</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token comment">/**
     * &#x5BB9;&#x91CF;
     */</span>
    <span class="token keyword">private</span> <span class="token keyword">int</span> capacity<span class="token punctuation">;</span>
    <span class="token comment">/**
     * &#x6570;&#x636E;&#x5BB9;&#x5668;
     */</span>
    <span class="token keyword">private</span> <span class="token class-name">LinkedList</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">T</span><span class="token punctuation">&gt;</span></span> container<span class="token punctuation">;</span>


    <span class="token keyword">public</span> <span class="token class-name">ProducerAndConsumerV1</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token keyword">this</span><span class="token punctuation">.</span>container <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">LinkedList</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token punctuation">&gt;</span></span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span>

    <span class="token comment">/**
     * &#x6D88;&#x8D39;&#x6570;&#x636E;
     */</span>
    <span class="token keyword">public</span> <span class="token class-name">T</span> <span class="token function">get</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token comment">//1.&#x5982;&#x679C;&#x662F;&#x7A7A;&#x7684;&#x8BDD;&#xFF0C;&#x5F53;&#x524D;&#x6D88;&#x8D39;&#x8005;&#x7EBF;&#x7A0B;&#x963B;&#x585E;</span>
        <span class="token keyword">while</span> <span class="token punctuation">(</span>container<span class="token punctuation">.</span><span class="token function">size</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token keyword">synchronized</span> <span class="token punctuation">(</span>notNullLock<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">try</span> <span class="token punctuation">{</span>
                    notNullLock<span class="token punctuation">.</span><span class="token function">wait</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span><span class="token class-name">InterruptedException</span> e<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    e<span class="token punctuation">.</span><span class="token function">printStackTrace</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>
        <span class="token comment">//2.&#x4E0D;&#x4E3A;&#x7A7A;&#xFF0C;&#x53D6;&#x6570;&#x636E;</span>
        <span class="token class-name">T</span> data <span class="token operator">=</span> container<span class="token punctuation">.</span><span class="token function">poll</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token operator">--</span>capacity<span class="token punctuation">;</span>
        <span class="token comment">//3.&#x5524;&#x9192;&#x6B63;&#x5728;&#x963B;&#x585E;&#x7684;&#x751F;&#x4EA7;&#x8005;&#x7EBF;&#x7A0B;</span>
        <span class="token keyword">synchronized</span> <span class="token punctuation">(</span>notFullLock<span class="token punctuation">)</span> <span class="token punctuation">{</span>
            notFullLock<span class="token punctuation">.</span><span class="token function">notify</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
        <span class="token keyword">return</span> data<span class="token punctuation">;</span>
    <span class="token punctuation">}</span>

    <span class="token comment">/**
     * &#x751F;&#x4EA7;&#x6570;&#x636E;
     */</span>
    <span class="token keyword">public</span> <span class="token keyword">boolean</span> <span class="token function">set</span><span class="token punctuation">(</span><span class="token class-name">T</span> value<span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token comment">//1.&#x6EE1;&#x4E86;&#xFF0C;&#x5F53;&#x524D;&#x7684;&#x751F;&#x4EA7;&#x8005;&#x7EBF;&#x7A0B;&#x963B;&#x585E;</span>
        <span class="token keyword">while</span> <span class="token punctuation">(</span>container<span class="token punctuation">.</span><span class="token function">size</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">==</span> capacity<span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token keyword">synchronized</span> <span class="token punctuation">(</span>notFullLock<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">try</span> <span class="token punctuation">{</span>
                    notFullLock<span class="token punctuation">.</span><span class="token function">wait</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span><span class="token class-name">InterruptedException</span> e<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    e<span class="token punctuation">.</span><span class="token function">printStackTrace</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>
        <span class="token comment">//2.&#x6CA1;&#x6EE1;&#xFF0C;&#x653E;&#x6570;&#x636E;</span>
        <span class="token keyword">boolean</span> result <span class="token operator">=</span> container<span class="token punctuation">.</span><span class="token function">add</span><span class="token punctuation">(</span>value<span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token operator">++</span>capacity<span class="token punctuation">;</span>
        <span class="token comment">//3.&#x5524;&#x9192;&#x6B63;&#x5728;&#x963B;&#x585E;&#x7684;&#x6D88;&#x8D39;&#x8005;&#x7EBF;&#x7A0B;</span>
        <span class="token keyword">synchronized</span> <span class="token punctuation">(</span>notNullLock<span class="token punctuation">)</span> <span class="token punctuation">{</span>
            notNullLock<span class="token punctuation">.</span><span class="token function">notify</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
        <span class="token keyword">return</span> result<span class="token punctuation">;</span>
    <span class="token punctuation">}</span>
</code></pre>
<h3 id="&#x6D4B;&#x8BD5;&#x4EE3;&#x7801;"><a name="&#x6D4B;&#x8BD5;&#x4EE3;&#x7801;" class="anchor-navigation-ex-anchor" href="#&#x6D4B;&#x8BD5;&#x4EE3;&#x7801;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x6D4B;&#x8BD5;&#x4EE3;&#x7801;</h3>
<pre class="language-"><code class="lang-java">    <span class="token keyword">public</span> <span class="token keyword">static</span> <span class="token keyword">void</span> <span class="token function">main</span><span class="token punctuation">(</span><span class="token class-name">String</span><span class="token punctuation">[</span><span class="token punctuation">]</span> args<span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token comment">//&#x8BBE;&#x7F6E;&#x521D;&#x59CB;&#x5BB9;&#x91CF;&#x4E3A;10</span>
        <span class="token keyword">int</span> cap <span class="token operator">=</span> <span class="token number">10</span><span class="token punctuation">;</span>
        <span class="token class-name">ProducerAndConsumerV1</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">String</span><span class="token punctuation">&gt;</span></span> pv <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">ProducerAndConsumerV1</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token punctuation">&gt;</span></span><span class="token punctuation">(</span>cap<span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token comment">//&#x5F00;&#x4E00;&#x4E2A;&#x751F;&#x4EA7;&#x8005;&#x7EBF;&#x7A0B;</span>
        <span class="token keyword">new</span> <span class="token class-name">Thread</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">-&gt;</span> <span class="token punctuation">{</span>
            <span class="token class-name">System</span><span class="token punctuation">.</span>out<span class="token punctuation">.</span><span class="token function">println</span><span class="token punctuation">(</span><span class="token class-name">Thread</span><span class="token punctuation">.</span><span class="token function">currentThread</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">getName</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">+</span> <span class="token string">&quot;&#x5C1D;&#x8BD5;&#x83B7;&#x53D6;&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token class-name">System</span><span class="token punctuation">.</span>out<span class="token punctuation">.</span><span class="token function">println</span><span class="token punctuation">(</span><span class="token class-name">Thread</span><span class="token punctuation">.</span><span class="token function">currentThread</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">getName</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">+</span> <span class="token string">&quot;&#x83B7;&#x53D6;&#x4E86;&#x4E00;&#x4E2A;&#x5143;&#x7D20;&#xFF1A;&quot;</span> <span class="token operator">+</span> pv<span class="token punctuation">.</span><span class="token function">get</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token class-name">Thread</span><span class="token punctuation">.</span><span class="token function">sleep</span><span class="token punctuation">(</span><span class="token number">500</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span><span class="token class-name">InterruptedException</span> e<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                e<span class="token punctuation">.</span><span class="token function">printStackTrace</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token class-name">System</span><span class="token punctuation">.</span>out<span class="token punctuation">.</span><span class="token function">println</span><span class="token punctuation">(</span><span class="token class-name">Thread</span><span class="token punctuation">.</span><span class="token function">currentThread</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">getName</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">+</span> <span class="token string">&quot;&#x8BBE;&#x7F6E;&#x4E86;&#x4E00;&#x4E2A;&#x5143;&#x7D20;&#xFF0C;&#x72B6;&#x6001;&#xFF1A;&quot;</span> <span class="token operator">+</span> pv<span class="token punctuation">.</span><span class="token function">set</span><span class="token punctuation">(</span><span class="token string">&quot;test1&quot;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">start</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

        <span class="token comment">//&#x5F00;&#x4E00;&#x4E2A;&#x6D88;&#x8D39;&#x8005;&#x7EBF;&#x7A0B;</span>
        <span class="token keyword">new</span> <span class="token class-name">Thread</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">-&gt;</span> <span class="token punctuation">{</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token class-name">Thread</span><span class="token punctuation">.</span><span class="token function">sleep</span><span class="token punctuation">(</span><span class="token number">500</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span><span class="token class-name">InterruptedException</span> e<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                e<span class="token punctuation">.</span><span class="token function">printStackTrace</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token class-name">System</span><span class="token punctuation">.</span>out<span class="token punctuation">.</span><span class="token function">println</span><span class="token punctuation">(</span><span class="token class-name">Thread</span><span class="token punctuation">.</span><span class="token function">currentThread</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">getName</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">+</span> <span class="token string">&quot;&#x8BBE;&#x7F6E;&#x4E86;&#x4E00;&#x4E2A;&#x5143;&#x7D20;&#xFF0C;&#x72B6;&#x6001;&#xFF1A;&quot;</span> <span class="token operator">+</span> pv<span class="token punctuation">.</span><span class="token function">set</span><span class="token punctuation">(</span><span class="token string">&quot;test2&quot;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token class-name">System</span><span class="token punctuation">.</span>out<span class="token punctuation">.</span><span class="token function">println</span><span class="token punctuation">(</span><span class="token class-name">Thread</span><span class="token punctuation">.</span><span class="token function">currentThread</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">getName</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">+</span> <span class="token string">&quot;&#x5C1D;&#x8BD5;&#x83B7;&#x53D6;&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token class-name">System</span><span class="token punctuation">.</span>out<span class="token punctuation">.</span><span class="token function">println</span><span class="token punctuation">(</span><span class="token class-name">Thread</span><span class="token punctuation">.</span><span class="token function">currentThread</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">getName</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">+</span> <span class="token string">&quot;&#x83B7;&#x53D6;&#x4E86;&#x4E00;&#x4E2A;&#x5143;&#x7D20;&#xFF1A;&quot;</span> <span class="token operator">+</span> pv<span class="token punctuation">.</span><span class="token function">get</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">start</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span>
</code></pre>
<h3 id="&#x6D4B;&#x8BD5;&#x7ED3;&#x679C;"><a name="&#x6D4B;&#x8BD5;&#x7ED3;&#x679C;" class="anchor-navigation-ex-anchor" href="#&#x6D4B;&#x8BD5;&#x7ED3;&#x679C;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x6D4B;&#x8BD5;&#x7ED3;&#x679C;</h3>
<p><img src="https://s1.ax1x.com/2020/05/02/JxKUKS.jpg" alt="JxKUKS.jpg"></p>
<h2 id="&#x603B;&#x7ED3;"><a name="&#x603B;&#x7ED3;" class="anchor-navigation-ex-anchor" href="#&#x603B;&#x7ED3;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x603B;&#x7ED3;</h2>
<pre class="language-"><code class="lang-xml">&#x672C;&#x6B21;&#x7ED9;&#x5927;&#x5BB6;&#x4ECB;&#x7ECD;&#x4E86;&#x751F;&#x4EA7;&#x8005;&#x6D88;&#x8D39;&#x8005;&#x6A21;&#x677F;
</code></pre>
<footer class="page-footer"><span class="copyright">Copyright &#xA9;  leo-bin all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2020-05-02 21:26:54
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="id生成.html" class="navigation navigation-prev " aria-label="Previous page: id生成算法">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="String匹配.html" class="navigation navigation-next " aria-label="Next page: 字符串匹配算法">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"生产者消费者","level":"1.2.6","depth":2,"next":{"title":"字符串匹配算法","level":"1.2.7","depth":2,"path":"算法/String匹配.md","ref":"./算法/String匹配.md","articles":[]},"previous":{"title":"id生成算法","level":"1.2.5","depth":2,"path":"算法/id生成.md","ref":"./算法/id生成.md","articles":[]},"dir":"ltr"},"config":{"plugins":["theme-comscore","prism","-highlight","copy-code-button","search-pro","-search","-lunr","expandable-chapters","splitter","-sharing","github-buttons","donate","tbfed-pagefooter","baidu-tongji","anchor-navigation-ex","pageview-count","expandable-chapters","livereload"],"styles":{"website":"./public-repertory/css/gitbook-configure.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy  leo-bin","modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prismjs/themes/prism-solarizedlight.css"],"lang":{"shell":"bash"}},"livereload":{},"baidu-tongji":{"url":"https://hm.baidu.com/hm.js","token":"55e7dfe47f4dc1c018d4042fdfa62565"},"splitter":{},"search-pro":{},"donate":{"alipay":"https://s1.ax1x.com/2020/05/02/JxiVUO.th.jpg","alipayText":"支付宝打赏","button":"打赏","title":"","wechat":"https://s1.ax1x.com/2020/05/02/JxiEVK.th.jpg","wechatText":"微信打赏"},"fontsettings":{"theme":"white","family":"sans","size":2},"anchor-navigation-ex":{"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"mode":"float","multipleH1":true,"pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"printLog":false,"showGoTop":true,"showLevel":false},"theme-comscore":{},"pageview-count":{},"github-buttons":{"buttons":[{"user":"leo-bin","repo":"coding-bin","type":"star","count":true,"size":"small"},{"user":"leo-bin","width":"160","type":"follow","count":true,"size":"small"}]},"copy-code-button":{},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"theme":"default","author":"李斌 - leo-bin","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"bin 的个人文档库","language":"zh-hans","gitbook":"*","description":"bin 的个人文档库. 里面包含了个人撰写的所有学习文章，例如春招+秋招面试经验+计算机基础以及Java等……"},"file":{"path":"算法/pv.md","mtime":"2020-05-02T13:26:54.165Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-05-02T13:28:20.472Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-copy-code-button/toggle.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-baidu-tongji/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-comscore/test.js"></script>
        
    

    </body>
</html>

